<script src="/static/js/jquery.cookie.min.js"></script>
<script src="/static/bootstrap-3.3.7/js/bootstrap.min.js"></script>

<script src="/static/bootstrap-table-1.12.1/dist/bootstrap-table.min.js"></script>

<script src="/static/bootstrap-table-1.12.1/dist/extensions/editable/bootstrap-table-editable.min.js"></script>

<script src="/static/bootstrap-table-1.12.1/dist/extensions/treegrid/bootstrap-table-treegrid.js"></script>
<script src="/static/jquery-treegrid-0.2.0/js/jquery.treegrid.js"></script>
<script src="/static/bootstrap3-editable/js/bootstrap-editable.min.js"></script>

<script src="/static/plugins/bootstrap-select/js/bootstrap-select.min.js"></script>

<script src="/static/zTree_v3/js/jquery.ztree.all.min.js"></script>
<!--<script src="/static/zTree/js/jquery.ztree.excheck-3.5.min.js"></script>-->

<script src="/static/jquery-validation-1.19.2/jquery.validate.min.js"></script>
<script src="/static/jquery-validation-1.19.2/localization/messages_zh.min.js"></script>

<script src="/static/ajax/libs/bootstrap-treeview/1.2.0/bootstrap-treeview.min.js"></script>


<script src="/static/ajax/libs/jqgrid/5.5.4/js/i18n/grid.locale-en.js"></script>
<script src="/static/ajax/libs/jqgrid/5.5.4/js/jquery.jqGrid.min.js"></script>
<script src="/static/ajax/libs/jqgrid/5.5.4/js/grid.treegrid.min.js"></script>
<script>
    $.jgrid.defaults.width = 780;
    $.jgrid.defaults.responsive = true;
    $.jgrid.defaults.styleUI = 'Bootstrap';
</script>
<script>
    function delRecord(url) {
        confirmx('确定要删除吗？', function () {
                $.get(url, function (data, status) {
                    if (data && data.result === 100) {
                        toastr.success('操作成功');

                        var paginationTable = $("#paginationTable");
                        if (paginationTable) {
                            paginationTable.bootstrapTable('refresh');
                        }
                    } else {
                        toastr.error('操作失败：' + data.message);
                    }
                });
            }
        )
    }
</script>

<script type="text/javascript">
    function doSubmit() {
        //回调函数，在编辑和保存动作时，供openDialog调用提交表单。
        //if (validateForm.form()) {
        //$("#inputForm").submit();
        $("#inputForm").validate();
        $("#inputForm").submit()
    }
</script>